package ar.edu.utn.frsf.cidisi.ginet.generation.pnml2wscdl.elementstemplate;

import org.pnml.tools.epnk.pnmlcoremodel.Page;
import org.w3._2005._10.cdl.CdlFactory;
import org.w3._2005._10.cdl.TChoreography;
import org.w3._2005._10.cdl.TInteraction;

public class BusinessMessageWSCDL extends WSCDLStructure{
	
	public BusinessMessageWSCDL(Page page, TChoreography choreography){
		this.page = page;
		this.choreography = choreography;
	}
	
	public TInteraction createWSCDLElement(){
		TInteraction tInteraction = CdlFactory.eINSTANCE.createTInteraction();
		tInteraction.setOperation("request");
		tInteraction.setName(page.getName().getText());
		return tInteraction;
		
	}

}
